package com.tz.basedemo.ui.module;


import com.tz.basedemo.ui.biz.MainBiz;
import com.tz.basedemo.ui.contract.MainContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by xuweihua on 16/8/31.
 */
@Module
public class MainModule {
    private MainContract.View view;

    public MainModule(MainContract.View view) {
        this.view = view;
    }

    @Provides
    public MainContract.View provideView() {
        return view;
    }

    @Provides
    public MainBiz provideBiz() {
        return new MainBiz();
    }
}